import React from 'react';
export default class ItemBank extends React.Component{
    constructor(props){
        super();
        if(props.fill===undefined){
            this.state={
                fill:"#5393eb"
            }
        }
        else{
            this.state={
                fill:props.fill
            }
        }
        
    }
    UNSAFE_componentWillReceiveProps(prop){
        if(prop.fill===undefined||prop.fill===""){
            this.setState({
                fill:"#5393eb"

            })
        }
        else{
            this.setState({
                fill:prop.fill
                
            })
        }
    }
    render(){
        return(
            <svg xmlns="http://www.w3.org/2000/svg" fill={this.state.fill}  width="36.631" height="40.94" viewBox="0 0 36.631 40.94">
        <g id="题库练习" transform="translate(0)">
            <path id="路径_946" data-name="路径 946" className="cls-1" d="M112.263,54.879h32.77V47.158h-32.77Z" transform="translate(-109.928 -45.273)"/>
            <path id="路径_947" data-name="路径 947" className="cls-2" d="M471.579,687.158m1.347,0h10.235a1.19,1.19,0,0,1,1.347,1.347h0a1.19,1.19,0,0,1-1.347,1.347H472.926a1.19,1.19,0,0,1-1.347-1.347h0A1.19,1.19,0,0,1,472.926,687.158Z" transform="translate(-454.879 -659.686)"/>
            <path id="路径_948" data-name="路径 948" className="cls-2" d="M476.968,444.632m1.347,0h9.7a1.19,1.19,0,0,1,1.347,1.347h0a1.19,1.19,0,0,1-1.347,1.347h-9.7a1.19,1.19,0,0,1-1.347-1.347h0A1.19,1.19,0,0,1,478.315,444.632Z" transform="translate(-460.052 -426.856)"/>
            <path id="路径_949" data-name="路径 949" className="cls-2" d="M88.368,2.048H59.438a5.57,5.57,0,1,0,0,11.139H90.5V4.18a2.133,2.133,0,0,0-2.13-2.132m-.561,2.693v5.753H59.437a2.877,2.877,0,0,1,0-5.753H87.806" transform="translate(-53.868 -1.966)"/>
            <path id="路径_950" data-name="路径 950" className="cls-2" d="M88.386,0H59.564a5.669,5.669,0,0,0-5.669,5.669v29.6a5.669,5.669,0,0,0,5.669,5.669H84.856a5.669,5.669,0,0,0,5.669-5.669V2.139A2.139,2.139,0,0,0,88.386,0m-.555,2.693V35.271a2.979,2.979,0,0,1-2.976,2.976H59.564a2.979,2.979,0,0,1-2.976-2.976V5.669a2.979,2.979,0,0,1,2.976-2.976H87.831" transform="translate(-53.894)"/>
            <path id="路径_951" data-name="路径 951" className="cls-2" d="M208.829,428.172m.762.762,2.285,2.285a.952.952,0,0,1,0,1.524h0a.952.952,0,0,1-1.524,0l-2.285-2.285a.952.952,0,0,1,0-1.524h0A.952.952,0,0,1,209.591,428.934Z" transform="translate(-201.536 -411.054)"/>
            <path id="路径_952" data-name="路径 952" className="cls-2" d="M271.326,400.733m-.762.762-3.809,3.809a.952.952,0,0,1-1.524,0h0a.952.952,0,0,1,0-1.524l3.809-3.809a.952.952,0,0,1,1.524,0h0A.952.952,0,0,1,270.564,401.495Z" transform="translate(-256.415 -383.614)"/>
            <path id="路径_953" data-name="路径 953" className="cls-2" d="M208.836,670.68m.762.762,2.285,2.285a.952.952,0,0,1,0,1.524h0a.952.952,0,0,1-1.524,0l-2.285-2.285a.952.952,0,0,1,0-1.524h0A.952.952,0,0,1,209.6,671.442Z" transform="translate(-201.543 -643.866)"/>
            <path id="路径_954" data-name="路径 954" className="cls-2" d="M271.333,643.241m-.762.762-3.809,3.809a.952.952,0,0,1-1.524,0h0a.952.952,0,0,1,0-1.524l3.809-3.809a.952.952,0,0,1,1.524,0h0A.952.952,0,0,1,270.571,644Z" transform="translate(-256.422 -616.427)"/>
        </g>
        </svg>
            );
    }
}